package com.quanshu.shop.order.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 作者  李哲
 * 创建时间 2018/8/1
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
@Data
public class SubmitPrepareEntity implements Serializable {
    /**
     * serviceSum : 0.1
     * GP_pay : 0
     * GP_sum : 0
     * niuScore_sum : 0
     * niuScore_pay : 0
     * final_sum : 0.1
     * full_reduce : 0
     * full_sum : 0.05
     * niuFreight : 0
     * priceFreight : 65
     * sum : 0.1
     * goodsList : [{"gp_price":"0.00","goods_id":"1","niu_score":"0.00","sell_price":"0.01","cost_price":"0.01","weight":"0.00","market_rmb":null,"product_id":"1","spec_array":"[{\"id\":\"1\",\"type\":\"1\",\"value\":\"红色\",\"name\":\"颜色\",\"tip\":\"红色\"},{\"id\":\"2\",\"type\":\"1\",\"value\":\"ML\",\"name\":\"大小\",\"tip\":\"ML\"}]","store_nums":"100","goods_no":"SD153199987629-1","freight":65,"name":"测试商品1","exp":"0","img":"upload/2018/07/10/20180710042303715.jpg","is_active":"1","seller_id":"0","reduce":0,"count":"5","is_service":"1","payment_options":"0","sum":0.1,"count_gp":0,"count_score":0,"count_rmb":0,"goods_type":"product"}]
     * count : 5
     * addressList : [{"id":"14","user_id":"25","accept_name":"王大锤","zip":null,"telphone":null,"country":null,"province":"310000","city":"310100","area":"310105","address":"花木路123456","mobile":"15678912345","is_default":"1","province_val":"上海市","city_val":"市辖区","area_val":"长宁区"},{"id":"13","user_id":"25","accept_name":"王大锤","zip":null,"telphone":null,"country":null,"province":"310000","city":"310100","area":"310105","address":"花木路123456","mobile":"15678912345","is_default":"0","province_val":"上海市","city_val":"市辖区","area_val":"长宁区"}]
     */

    public String serviceSum;
    public String GP_pay;
    public String GP_sum;
    public String niuScore_sum;
    public String niuScore_pay;
    public String final_sum;
    public String full_reduce;
    public String full_sum;
    public String niuFreight;
    public String priceFreight;
    public String sum;
    public String count;
    public List<GoodsListEntity> goodsList;
    public List<AddressListEntity> addressList;

    @Data
    public class GoodsListEntity implements Serializable {
        /**
         * gp_price : 0.00
         * goods_id : 1
         * niu_score : 0.00
         * sell_price : 0.01
         * cost_price : 0.01
         * weight : 0.00
         * market_rmb : null
         * product_id : 1
         * spec_array : [{"id":"1","type":"1","value":"红色","name":"颜色","tip":"红色"},{"id":"2","type":"1","value":"ML","name":"大小","tip":"ML"}]
         * store_nums : 100
         * goods_no : SD153199987629-1
         * freight : 65
         * name : 测试商品1
         * exp : 0
         * img : upload/2018/07/10/20180710042303715.jpg
         * is_active : 1
         * seller_id : 0
         * reduce : 0
         * count : 5
         * is_service : 1
         * payment_options : 0
         * sum : 0.1
         * count_gp : 0
         * count_score : 0
         * count_rmb : 0
         * goods_type : product
         */

        public String gp_price;
        public String goods_id;
        public String niu_score;
        public String sell_price;
        public String cost_price;
        public String weight;
        public Object market_rmb;
        public String product_id;
        public String spec_array;
        public String store_nums;
        public String goods_no;
        public String freight;
        public String name;
        public String exp;
        public String img;
        public String is_active;
        public String seller_id;
        public String reduce;
        public String count;
        public String is_service;
        public String payment_options;
        public String sum;
        public String count_gp;
        public String count_score;
        public String count_rmb;
        public String goods_type;

        public String getWords() {
            return words;
        }

        public void setWords(String words) {
            this.words = words;
        }

        public String words;
    }

    @Data
    public static class AddressListEntity implements Serializable{
        /**
         * id : 14
         * user_id : 25
         * accept_name : 王大锤
         * zip : null
         * telphone : null
         * country : null
         * province : 310000
         * city : 310100
         * area : 310105
         * address : 花木路123456
         * mobile : 15678912345
         * is_default : 1
         * province_val : 上海市
         * city_val : 市辖区
         * area_val : 长宁区
         */

        public String id;
        public String user_id;
        public String accept_name;
        public Object zip;
        public Object telphone;
        public Object country;
        public String province;
        public String city;
        public String area;
        public String address;
        public String mobile;
        public String is_default;
        public String province_val;
        public String city_val;
        public String area_val;
    }
}
